# from django.contrib.auth.mixins import LoginRequiredMixin
# from django import http
#
# class LoginRequiredJSONMixin(LoginRequiredMixin):
#     """Verify that the current user is authenticated."""
#
#     def handle_no_permission(self):
#         return http.JsonResponse({'code': 400, 'errmsg': '用户未登录'})


#上传图片测试
from fdfs_client.client import Fdfs_client
#/meiduo_project/meiduo_mall/utils/fastdfs/client.conf
client=Fdfs_client('utils/fastdfs/client.conf')
#图片路径
client.upload_by_filename('/qinglv/Img/s2.jpg')
#获取fileid
